package com.atjinggu.jinggumail.product.service;

import com.atjinggu.jinggumail.product.vo.SkuItemVo;
import com.atjinggu.jinggumail.product.vo.SpuSaveVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atjinggu.jinggumail.common.utils.PageUtils;
import com.atjinggu.jinggumail.product.entity.SpuInfoEntity;

import java.util.List;
import java.util.Map;

/**
 * spu信息
 *
 * @author jingming
 * @email jingming@gmail.com
 * @date 2020-12-12 23:08:28
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo spuSaveVo);

    void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    void up(String spuId);

    List<SkuItemVo.SpuAttrGroupInfo> selectSkuAttrGroupAndAttrBySku(Long catalogId, Long spuId);

    SpuInfoEntity getSpuInfoBySkuId(String skuId);

}

